﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// NotReviewedButNeeded

#pragma once
#include "GcmpUiInterface.h"
#include "IEventArgs.h"
#include "Any.h"
#include <string>

namespace gcmp
{
    class IAction;

    /// \brief ActionInput事件类型
    enum class ActionInputEventType : int32_t
    {
        InputValueChanged,    ///< 输入值改变
        InputEnterFinished,   ///< 输入完成
        InputMouseLeave       ///< 鼠标离开对话框
    };


    class GCMP_UI_INTERFACE_EXPORT IActionInputEventArgs : public IEventArgs
    {
    public:
        /// \brief 析构函数
        virtual ~IActionInputEventArgs() {}

        /// \brief 得到ActionInput事件类型
        ///
        /// \return ActionInputEventType 
        virtual ActionInputEventType GetType() const = 0;

        /// \brief 得到ActionInput事件和消息
        ///
        /// \return ActionInput事件和消息 
        virtual const std::pair<std::wstring, gcmp::Any>& GetInputMessage() const = 0;
 
    };
}

